﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PWA.PineWS;

namespace PWA
{
    public partial class InsertCustomer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnContinue_Click(object sender, EventArgs e)
        {
            Service1 WS = new Service1();
            PineWS.Customer c = new PWA.PineWS.Customer();
            c.CustFirstName = txtCustFirstName.Text;
            c.CustLastName = txtCustLastName.Text;
            c.CustAddress = txtCustAddress.Text;
            c.CustCity = txtCustCity.Text;
            c.CustState = txtCustState.Text;
            c.ZipCode = txtCustZipCode.Text;
            c.CustPhone = txtCustPhone.Text;
           
            Session.Add("Customer", c);

            Boolean success = WS.InsertCustomer(c);
           
            Server.Transfer("OrderConfirmation.aspx");
        }
    }
}
